from typing import Optional

from pydantic import BaseModel


class RetrievalResult(BaseModel):
    id: str
    title: Optional[str] = None
    content: Optional[str] = None
    source_url: Optional[str] = None
    metadata: Optional[dict] = None
